package com.leyou.exception;

import lombok.AllArgsConstructor;
import lombok.ToString;

@AllArgsConstructor
@ToString
public enum ExceptionEnum {

    SERVER_EXCEPTION(5000, "服务器繁忙!");

    private final int status; // 状态码
    private final String msg; // 消息

    public int status(){
        return this.status;
    }

    public String msg() {
        return this.msg;
    }
}
